package com.example.BlockChain.dao;

import com.example.BlockChain.entity.TUser;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {

    public int add(TUser user);

    public TUser queryUserByUsername(String username);


    public List<TUser>  queryStores(String role);

    public TUser queryUser1(int userid);

    public TUser queryUser(TUser tuser);//登录使用

    public String queryUserAddressByUserid(int userid);

    /**
     * 根据用户ID查询用户信息
     *
     * @param userid 用户ID
     * @return 用户对象
     */
    TUser getUserById(int userid);
}
